package com.ymatou.iapi.payment.testcase;
import java.util.ArrayList;
import java.util.List;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.iapi.payment.parameter.AcquireOrderBean;
import com.ymatou.iapi.payment.parameter.AcquireRefundBean;
import com.ymatou.iapi.payment.parameter.CheckRefundableBean;
import com.ymatou.iapi.payment.parameter.Detail;
import com.ymatou.iapi.payment.parameter.SubmitRefundBean;
import com.ymatou.iapi.payment.parameter.TradeDetail;
import com.ymatou.iapi.payment.service.CheckRefundableCall;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.TestCase;
import com.ymt.utils.annotation.TestSuite;
import com.ymt.utils.tag.P1;
import com.ymt.utils.tag.P2;
import com.ymt.utils.tag.P3;
import com.ymttest.business.service.PayGateWayCallService;
import com.ymttest.database.model.MPayment;
/**
*检查是否可以退款接口
*FreeMaker Template自动生成代码
*/
@TestSuite
public class Ts_CheckRefundable{
	private static CheckRefundableBean checkrefundableBean;
	private static CheckRefundableCall checkrefundableCall;
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("检查是否可以退款接口");
	}

	@Before
	public void caseUp() {
		checkrefundableBean=new CheckRefundableBean();
		checkrefundableCall=new CheckRefundableCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(checkrefundableCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_001() {
		Logger.start(true,"输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("10");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category({P3.class})
	@TestCase
	public void Tc_CheckRefundable_002() {
		Logger.start(true,"不输入TradeNos审核退款失败");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("10");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			PayGateWayCallService.submitRefund(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
//			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();			
			Logger.verifyEquals("1000", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("参数异常|TradeNos and TradeDetails cannot be empty.", checkrefundableCall.getString("ErrorMessage"), "验证ErrorMessage");
			Logger.verifyEquals("false", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P2.class})
	@TestCase
	public void Tc_CheckRefundable_003() {
		Logger.start(true,"输入不可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("10");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			PayGateWayCallService.submitRefund(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add("-1");
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();				
			Logger.verifyEquals(0, checkrefundableCall.getDetails().size(), "判断Detail为空");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_004() {
		Logger.start(true,"输入可以退款TradeDetails检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("10");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<TradeDetail> tradeDetails=new ArrayList<TradeDetail>();
			TradeDetail tradeDetail=new TradeDetail();
			tradeDetail.setRefundAmt(aqb.getPayPrice());
			tradeDetail.setTradeNo(aqb.getOrderId());
			tradeDetails.add(tradeDetail);
			checkrefundableBean.setTradeDetails(tradeDetails);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_005() {
		Logger.start(true,"输入小于可退金额的退款金额,可以退款");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("10");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<TradeDetail> tradeDetails=new ArrayList<TradeDetail>();
			TradeDetail tradeDetail=new TradeDetail();
			tradeDetail.setRefundAmt("1");
			tradeDetail.setTradeNo(aqb.getOrderId());
			tradeDetails.add(tradeDetail);
			checkrefundableBean.setTradeDetails(tradeDetails);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();			
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_006() {
		Logger.start(true,"输入超出可退金额的退款金额,不可退款");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("10");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<TradeDetail> tradeDetails=new ArrayList<TradeDetail>();
			TradeDetail tradeDetail=new TradeDetail();
			tradeDetail.setRefundAmt(String.valueOf(new Double(aqb.getPayPrice())+1));
			tradeDetail.setTradeNo(aqb.getOrderId());
			tradeDetails.add(tradeDetail);
			checkrefundableBean.setTradeDetails(tradeDetails);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();			
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(false, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_007() {
		Logger.start(true,"全部提交退款后查询,不可退款");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("10");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			SubmitRefundBean srb = PayGateWayCallService.submitRefund(aqb);
			List<TradeDetail> tradeDetails=new ArrayList<TradeDetail>();
			TradeDetail tradeDetail=new TradeDetail();
			tradeDetail.setRefundAmt(String.valueOf(new Double(aqb.getPayPrice())));
			tradeDetail.setTradeNo(aqb.getOrderId());
			tradeDetails.add(tradeDetail);
			checkrefundableBean.setTradeDetails(tradeDetails);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();			
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(srb.getTradeDetails().get(0).getTradeNo(), d.getTradeNo(), "验证TradeNo");
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(false, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_008() {
		Logger.start(true,"部分提交退款后查询,可以退款");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("10");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			//这里需要改成新的提交
			AcquireRefundBean ar = PayGateWayCallService.AcquireRefund(aqb, "1");
			List<TradeDetail> tradeDetails=new ArrayList<TradeDetail>();
			TradeDetail tradeDetail=new TradeDetail();
			tradeDetail.setRefundAmt("1");
			tradeDetail.setTradeNo(aqb.getOrderId());
			tradeDetails.add(tradeDetail);
			checkrefundableBean.setTradeDetails(tradeDetails);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();			
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_009() {
		Logger.start(true,"applepay输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("60");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_010() {
		Logger.start(true,"baofu输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("70");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_011() {
		Logger.start(true,"花呗输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("9");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_012() {
		Logger.start(true,"翼支付输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("80");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_013() {
		Logger.start(true,"62upay-app输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("62");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_014() {
		Logger.start(true,"63upay-wap输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("63");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_015() {
		Logger.start(true,"全球优选-商城-微信小程序输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("3017");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals("3117", d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_016() {
		Logger.start(true,"64小米支付输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("64");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_017() {
		Logger.start(true,"全球优选-支付宝App输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("3013");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_018() {
		Logger.start(true,"全球优选-微信App输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("3015");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_019() {
		Logger.start(true,"65.HuaweiPay输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("65");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_020() {
		Logger.start(true,"66.SamSungPay输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("66");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_021() {
		Logger.start(true,"6000.HipoPayWxApp输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("6000");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_022() {
		Logger.start(true,"花呗8输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("8");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_023() {
		Logger.start(true,"6001.HipoPayWxH5输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("6001");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_024() {
		Logger.start(true,"90分期乐输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("90");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_025() {
		Logger.start(true,"3113全球优选-支付宝App输入可以退款TradeNos检查是否可以退款成功-Cloud");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("3113");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_026() {
		Logger.start(true,"3115全球优选-微信App输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("3115");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_027() {
		Logger.start(true,"3117全球优选-商城-微信小程序输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("3117");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_028() {
		Logger.start(true,"3213鱼多多全球优选-支付宝App输入可以退款TradeNos检查是否可以退款成功-Cloud");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("3213");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_029() {
		Logger.start(true,"3215鱼多多全球优选-微信App输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("3215");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_030() {
		Logger.start(true,"2013抖音支付宝输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("2013");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_031() {
		Logger.start(true,"91分期乐小程序输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("91");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_032() {
		Logger.start(true,"6002HipoPay-微信H5飛界國際電子商務输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("6002");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_033() {
		Logger.start(true,"6010盛付通微信小程序输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("6010");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_034() {
		Logger.start(true,"6011盛付通微信公众号输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("6011");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_035() {
		Logger.start(true,"6006代购神器HipoPayAliWap输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("6006");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_036() {
		Logger.start(true,"6100GodAliPayPc输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("6100");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_037() {
		Logger.start(true,"6103.HipoPay-微信app输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("6103");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_038() {
		Logger.start(true,"6107.HipoPay-支付宝app输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("6107");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_039() {
		Logger.start(true,"6003HipoPay-微信H5飛界國際输入可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("6003");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_040() {
		Logger.start(true,"输入4013可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("4013");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CheckRefundable_041() {
		Logger.start(true,"输入4016可以退款TradeNos检查是否可以退款成功");
		try {
			AcquireOrderBean aqb = PayGateWayCallService.initAcquireOrder("4016");
			PayGateWayCallService.acquireOrder(aqb);
			PayGateWayCallService.notifyCall(aqb);
			List<String> TradeNos=new ArrayList<String>();
			TradeNos.add(aqb.getOrderId());
			checkrefundableBean.setTradeNos(TradeNos);
			checkrefundableCall.setData(checkrefundableBean);
			checkrefundableCall.callService();
			Logger.verifyEquals("0", checkrefundableCall.getString("ErrorCode"), "验证ErrorCode");
			Logger.verifyEquals("true", checkrefundableCall.getString("IsSuccess"), "验证IsSuccess");
			ArrayList<Detail> list = checkrefundableCall.getDetails();
			if(list.size()==1){
				Detail d=list.get(0);
				Logger.verifyEquals(new Double(aqb.getPayPrice()), new Double(d.getPayAmount().toString()), "验证PayAmount");
				//Logger.verifyEquals(aqb.getCurrency(), d.getCurrencyType(), "验证CurrencyType");
				 MPayment pp = PayGateWayCallService.getPPayment(aqb);
				Logger.verifyEquals(pp.getPaymentId(), d.getPaymentId(), "验证PaymentId");
				Logger.verifyEquals(true, d.getIsRefundable(), "验证IsRefundable");
				Logger.verifyEquals(pp.getInstitutionPaymentId(), d.getInstPaymentId(), "验证InstPaymentId");
				Logger.verifyEquals(aqb.getPayType(), d.getPayType(), "验证PayType");
				Logger.verifyEquals(new Double( aqb.getPayPrice()), new Double(d.getRefundableAmt().toString()), "验证RefundableAmt");
			}
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}